package control;

import gui.IGUI;
import model.Model;

/**
 * Controller-Klasse im MVC-Pattern.
 * @author Chris
 */
public class Controller {

    private Model model;
    private IGUI gui;

    public Controller(Model modelP, IGUI guiP) {
        this.model = modelP;
        this.gui = guiP;
    }

    public void startUp() {
        gui.createStage();
        gui.setActionListener(this);
    }

    //Listener-Methoden
    public void menuButtonClicked(String buttonText) {
        System.out.println("Catched menuButtonClicked-Event from Button "+buttonText);
    }
}
